import LoginStore from './login.store';

import { createContext, useContext } from 'react';

class RootStore {
  constructor() {
    this.loginStore = new LoginStore();
  }
}

const root = new RootStore();
const context = createContext(root);
const useStore = () => useContext(context);

export default useStore;
